﻿<Window x:Class="Draughts.View.LoadView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:res="clr-namespace:Draughts.Resources"
        Title="{x:Static res:Resource.LoadWindowTitle}" Width="480" Height="270" WindowStartupLocation="CenterOwner"
        ResizeMode="NoResize" ShowInTaskbar="False">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="130" />
        </Grid.ColumnDefinitions>

        <ListBox Grid.Column="0" SelectionMode="Single" ItemsSource="{Binding Path=Saves}" SelectedItem="{Binding Path=SelectedSave}" />
        <Grid Grid.Column="1">
            <Button Content="{x:Static res:Resource.LoadButtonText1}" Margin="8,8,8,0" VerticalAlignment="Top" Command="{Binding Path=LoadCommand}" IsDefault="True" />
            <Button Content="{x:Static res:Resource.DeleteButtonText}" Margin="8,36,8,0" VerticalAlignment="Top" Command="{Binding Path=DeleteCommand}" />
            <Button Content="{x:Static res:Resource.CancelButtonText}" Margin="8,0,8,8" VerticalAlignment="Bottom" IsCancel="True" />
        </Grid>
    </Grid>
</Window>
